package com.freak.mvvmhelper.base.lifecycle;

import androidx.lifecycle.Lifecycle;
import androidx.lifecycle.OnLifecycleEvent;


public class MyLifecycleObserver implements androidx.lifecycle.LifecycleObserver {

    public MyLifecycleObserver() {
    }

    @OnLifecycleEvent(Lifecycle.Event.ON_CREATE)
    public void onCreate() {
//        LogUtil.e("生命周期 MyLifecycleObserver onCreate: ");

    }

    @OnLifecycleEvent(Lifecycle.Event.ON_START)
    public void onStart() {
//        LogUtil.e("生命周期 MyLifecycleObserver onStart: ");
    }

    @OnLifecycleEvent(Lifecycle.Event.ON_RESUME)
    public void onResume() {
//        LogUtil.e("生命周期 MyLifecycleObserver onResume: ");
    }

    @OnLifecycleEvent(Lifecycle.Event.ON_PAUSE)
    public void onPause() {
//        LogUtil.e("生命周期 MyLifecycleObserver onPause: ");
    }

    @OnLifecycleEvent(Lifecycle.Event.ON_STOP)
    public void onStop() {
//        LogUtil.e("生命周期 MyLifecycleObserver onStop: ");
    }

    @OnLifecycleEvent(Lifecycle.Event.ON_DESTROY)
    public void onDestroy() {
//        LogUtil.e("生命周期 MyLifecycleObserver onDestroy: ");
    }



}